<?php $this->_extends('_layouts/leftright_basic_layout'); ?>

<?php $this->_block('lr_pageJs'); ?>
	
<?php $this->_endblock(); ?>

<?php $this->_block('lr_pageCss'); ?>
	
<?php $this->_endblock(); ?>

<?php $this->_block('title'); ?>			
	WebDingus - Html模板: Htmltemplate模板 | Jqueryplugin插件 | 网页素材
<?php $this->_endblock(); ?>

<?php $this->_block('meta'); ?>
	WebDingus, Htmltemplate模板, Jqueryplugin插件, 网页素材
<?php $this->_endblock(); ?>

<?php $this->_block('left_contents'); ?>
	<div class="row-fluid box">	<!-- sortable -->
		<div class="box-header well">
			<h2><i class="icon-info-sign"></i> 网页模板</h2>
		</div>
		
		<div class="box-content">
			<?php $this->_element('htmltemplate/search'); ?>
		
			<div class="pagination">
				<?php echo $pagination; ?>
			</div>
			
			<?php if(!empty($htmlTemplates)): ?>
				<?php $htmlTemplates = array_chunk($htmlTemplates, 4, true); ?>
				<?php foreach($htmlTemplates as $line => $linehts): ?>
					<div class="row-fluid">		<!-- sortable -->
						<?php foreach($linehts as $k => $ht): ?>
							<div class="box span3">
								<div class="box-header well" data-original-title>
									<h2><?php echo $ht['name']; ?></h2>
								</div>
								<div class="box-content">
									<p>
										<span class="label label-info"><?php echo $ht['type_area']; ?></span>
										<span class="label label-info"><?php echo $ht['type_using']; ?></span>
										<span class="label label-info"><?php echo $ht['type_color']; ?></span>
										<span class="label label-info"><?php echo $ht['type_columnwidth']; ?></span>
										<span class="label label-info"><?php echo $ht['type_sidebarcorner']; ?></span>
									</p>
									<a href="<?php echo url('htmltemplate/preview', array('id' => $ht['id'])); ?>" class="thumbnail marginB1-1" target="_blank">		<!-- Hspace3 -->
										<img class="h140MaxWparent" alt="<?php echo $ht['name']; ?>" src="<?php echo $htmltemp_url . $ht['root_foldername'] . '/' . $ht['thumb_big']; ?>" />
									</a>
									<div class="row-fluid">
										<div class="span6 text-center">
											<a class="btn" type="button" target="_blank" href="<?php echo isset($ht['download_pack'])? $htmltemp_url . $ht['root_foldername'] . '/' . $ht['download_pack'] : 'javascript: void(0)'; ?>">
												<i class="icon-download-alt"></i>
												<?php echo isset($ht['download_pack'])? '下载' : '暂时没有提供下载'; ?>
											</a>
										</div>
			
										<div class="btn-group span6 text-center">
											<button class="btn btn-primary dropdown-toggle marginL1-1" data-toggle="dropdown">	<!-- noPaddingL noPaddingR -->
												预览 
												<span class="caret"></span>
											</button>
											<ul class="dropdown-menu btn-block">
												<li><a href="<?php echo url('htmltemplate/preview', array('id' => $ht['id'])); ?>">本页前往</a></li>
												<li><a href="<?php echo url('htmltemplate/preview', array('id' => $ht['id'])); ?>" target="_blank">在新窗口中打开</a></li>
											</ul>
										</div>
									</div>               
								</div>
							</div>
						<?php endforeach; ?>
					</div>
				<?php endforeach; ?>
			<?php else: ?>	
				<div class="alert alert-info">
					没有找到符合条件的结果...
				</div>
			<?php endif; ?>
			
			<div class="pagination">
				<?php echo $pagination; ?>
			</div>
			
			<div class="clearfix"></div>
		</div>
	</div>
<?php $this->_endblock(); ?>


<?php $this->_block('right_contents'); ?>
	<?php $this->_element('recommend');?>
	<?php $this->_element('downloadrank');?>
	<?php $this->_element('viewrank');?>
<?php $this->_endblock(); ?>
